package org.leon.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2017/4/18.
 */
@Controller
public class ControllerTest {

    @RequestMapping(value = "/helloWorld")
    public String helloWorld(Model model){
        model.addAttribute("message", "Hey Tea!");
        return "welcome";
    }

}
